package com.CmJava.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;



@TableName("user")
public class User {
    private int id;
//    mybatisplus 默认java字段userAccount映射为user_account
    @TableField("user_account")
    private String userAccount;
    @TableField("user_password")
    private String userPassword;

    public User() {

    }

    public User(int id, String userAccount, String userPassword) {
        this.id = id;
        this.userAccount = userAccount;
        this.userPassword = userPassword;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userAccount='" + userAccount + '\'' +
                ", userPassword='" + userPassword + '\'' +
                '}';
    }
}
